﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mangox.Model.Common
{

    /// <summary>
    /// 返回对象父类
    /// </summary>
    public class ResultComm
    {
        public ResultComm() { }
        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 返回对象
        /// </summary>
        public object Model { get; set; }
        /// <summary>
        /// 返回结果
        /// </summary>
        public ResultType ResultType { get; set; }
    }
    public class ResModel
    {
        public int Id { get; set; }
        public string ApplyGuid { get; set; }
    }

    public enum ResultType
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 0,
        /// <summary>
        /// 参数错误
        /// </summary>
        ParamError = 1,
        /// <summary>
        /// 逻辑错误
        /// </summary>
        LogicError = 2,
        /// <summary>
        /// 内部异常
        /// </summary>
        InternalError = 3,
        /// <summary>
        /// 验证错误
        /// </summary>
        AuthenticationError = 4
    }

    /// <summary>
    /// 上传文件返回实体
    /// </summary>
    public class UpdateEntity
    {
        public string code { get; set; }
        public string fileUrl { get; set; }
        public string fileName { get; set; }
        public DateTime datetime { get; set; }
    }

}
